package com.wsapi.core;

import java.util.List;

/**
 *  管理/操作平台，表示相关模块组成的功能集合
 * 
 * @author yangyan
 * 
 */
public class Platform {

    private String id;
    private String code;
    private String name;
    private String iconCls;
    private List<Module> modules;

    public void init() {
	if (modules != null) {
	    for (Module m : modules) {
		m.init();
	    }
	}
	Platforms.register(this);
    }

    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }

    public String getCode() {
	return code;
    }

    public void setCode(String code) {
	this.code = code;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getIconCls() {
	return iconCls;
    }

    public void setIconCls(String iconCls) {
	this.iconCls = iconCls;
    }

    public List<Module> getModules() {
	return modules;
    }

    public void setModules(List<Module> modules) {
	this.modules = modules;
    }
}
